//
//  YnetworkTableViewCell.m
//  shijianpinggu
//
//  Created by apple on 2016/12/23.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "YnetworkTableViewCell.h"

@implementation YnetworkTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    //控件切圆角
    UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:self.image.bounds byRoundingCorners:UIRectCornerAllCorners cornerRadii:self.image.bounds.size];
    CAShapeLayer *maskLayer = [[CAShapeLayer alloc]init];
    //设置大小
    maskLayer.frame = self.image.bounds;
    //设置图形样子
    maskLayer.path = maskPath.CGPath;
    self.image.layer.mask = maskLayer;
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
